package com.amigo.online.message.mongo.dao;

import com.amigo.online.message.mongo.entity.GroupEntity;
import org.springframework.data.domain.Pageable;
import org.springframework.data.geo.Distance;
import org.springframework.data.geo.GeoPage;
import org.springframework.data.geo.Point;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface GroupRepository extends MongoRepository<GroupEntity, Long> {

    GeoPage<GroupEntity> findByLocNearAndInvisible(Point point, Distance distance, Integer invisible, Pageable pageable);
}
